package com.flying.enumeration;

/**
 * @ClassName: Season
 * @author: 刘鹏飞
 * @date 2023/7/20 19:07
 * @Description: 季节的枚举
 */
public enum Season {

    /*
       如果枚举对象调用的是空参的构造方法, () 可以省略
    */
    SPRING("春天"),SUMMER,AUTUMN,WINTER("冬天");
    private String name;

    Season(String name) {
        this.name = name;
    }

    Season() {
    }

    @Override
    public String toString() {
        return name;
    }
}
